package jrain.fw.http.tomcat;

/**
 * <pre>
 * 作者：3244924214@qq.com 
 * 描述：HTTP服务配置类
 * </pre>
 */
public enum TomcatCfg {

	httpTomcatPort("http.server.tomcat.port", 8080);
	// -----------------------------------------------------------------------

	// -----------------------------------------------------------------------

	private String name;
	private String value;
	private long longValue;
	private int intValue;
	private boolean boolValue;

	private TomcatCfg(String name, String value) {
		this.name = name;
		this.value = value;
	}

	private TomcatCfg(String name, long longValue) {
		this.name = name;
		this.value = String.valueOf(longValue);
		this.longValue = longValue;
	}

	private TomcatCfg(String name, int intValue) {
		this.name = name;
		this.value = String.valueOf(intValue);
		this.intValue = intValue;
	}

	private TomcatCfg(String name, boolean boolValue) {
		this.name = name;
		this.value = String.valueOf(boolValue);
		this.boolValue = boolValue;
	}

	public String getName() {
		return name;
	}

	public String getValue() {
		return value;
	}

	public int getIntValue() {
		return intValue;
	}

	public long getLongValue() {
		return longValue;
	}

	public boolean getBooleanValue() {
		return boolValue;
	}
}
